//
//  XQRequestManager.h
//  iLovewCooking
//
//  Created by apple on 2018/8/10.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^progress)(NSProgress *uploadProgress);
typedef void (^success)(id responseObject);
typedef  void (^failure)(NSError *error);

@interface XQRequestManager : NSObject
+ (instancetype)shareInstance;
- (void)post:(NSString *)url parameters:(NSMutableDictionary *)parameter success:(success)success failure:(failure)failure;
- (void)post:(NSString *)url parameters:(NSMutableDictionary *)parameter progress:(progress)progress success:(success)success failure:(failure)failure;

// 主页数据请求
- (void)GetHomeData:(success)success failure:(failure)failure;

@end
